//
//  XYRockerPointView.h
//  FECCView
//
//  Created by 杨旭东 on 2017/9/11.
//  Copyright © 2017年 JackYang. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, XYRockerDirection){
    XYRockerDirection_Up = 0,
    XYRockerDirection_Down,
    XYRockerDirection_Left,
    XYRockerDirection_Right,
    XYRockerDirection_ZoomIn,
    XYRockerDirection_ZoomOut,
    XYRockerDirection_Reset_Horizontal,
    XYRockerDirection_Reset_Vertical,
    XYRockerDirection_Reset_Zoom,
    XYRockerDirection_TurnLeft,
    XYRockerDirection_TurnRight,
    XYRockerDirection_Forward,
    XYRockerDirection_Retreat,
    XYRockerDirection_Reset_Move
};

typedef NS_ENUM(NSInteger, XYRockerPoint) {
    XYRockerPoint_Normal = 0,
    XYRockerPoint_Highlight
};

typedef NS_ENUM(NSInteger, XYRockerTrackType) {
    XYRockerTrackType_Horizontal,
    XYRockerTrackType_Vertical,
    XYRockerTrackType_Free
};

@interface XYRockerPointView : UIImageView

+ (XYRockerPointView *(^)(CGPoint))addXYRockerPoint;

- (XYRockerPointView *(^)(CGFloat))xyradius;

- (XYRockerPointView *(^)(UIImage *, XYRockerPoint))background;

- (void)breakLimit:(void (^)())breakLimit;

- (void)reset:(void (^)(BOOL vertical))reset;

- (void)direction:(void (^)(XYRockerDirection))direction;

- (XYRockerPointView *(^)(XYRockerTrackType))trackType;

@end
